/*
 * @Author: xiehangyun 
 * @Date: 2025-02-24 13:19:50 
 * @Last Modified by: xiehangyun
 * @Last Modified time: 2025-02-27 19:09:03
 */


.addBgModal {
  position: relative;
  user-select: none;

  :global(.ant-modal-title) {
    text-align: center;
  }

  .left {
    display: inline-block;
    width: 140px;
    height: 600px;
    overflow-y: auto;
    vertical-align: top;

    &::-webkit-scrollbar {
      width: 4px;
      height: 4px;
      background-color: rgba(0, 0, 0, 0);
    }

    &::-webkit-scrollbar-track {
      box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
      border-radius: 4px;
      background-color: rgba(0, 0, 0, 0);
    }

    &::-webkit-scrollbar-thumb {
      border-radius: 10px;
      box-shadow: inset 0 0 6px #ff9729;
      background-color: #ff9729;
    }

    .mockUpitem {
      display: block;
      width: 120px;
      height: 120px;
      border: 1px solid #ccc;
      border-radius: 4px;
      margin-bottom: 10px;
      overflow: hidden;

      &:hover,
      &.active {
        border-color: #ff9729;
      }

      img {
        cursor: pointer;
      }
    }
  }

  .center {
    display: inline-block;
    vertical-align: top;
    width: 600px;
    height: 600px;
    margin: 0px 10px;
    border: 1px solid #ccc;
    overflow: hidden;

    canvas {
      width: 100%;
      height: 100%;
    }
  }

  .right {
    display: inline-block;
    vertical-align: top;
    width: 340px;
    font-size: 20px;

    .button {
      width: 340px;

      :global(.ant-btn) {
        width: 50%;
      }

      :global(.ant-btn) {
        &.active {
          color: #ff9729;
          border-color: #ff9729;
          background: #ffffff;
        }
      }

    }

    .vip {
      height: 18px;
      display: inline-block;
      vertical-align: middle;
      background-color: #ffffff;
      border-radius: 9px;
    }

    .backgroundList {
      text-align: left;
      height: 168px;

      &.systemBg {
        margin-top: 34px;
      }

      .backgroundItem {
        position: relative;
        display: inline-block;
        width: 76px;
        height: 76px;
        border-radius: 4px;
        margin: 4px;
        border: 2px solid #f0f0f0;

        &:hover,
        &.active {
          border-color: #ff9729;
        }

        &:hover {
          .closeIcon {
            display: block;
          }
        }

        .closeIcon {
          position: absolute;
          right: -5px;
          top: -5px;
          color: #ffffff;
          // color: #ff3f3f;
          // background-color: #ffffff;
          background-color: #ff3f3f;
          border-radius: 50%;
          cursor: pointer;
          display: none;
        }

        .backgroundImg {
          width: 100%;
          height: 100%;
          cursor: pointer;

        }
      }
    }


    .list_info {
      margin: 10px 0px;

      .pagination {
        :global(.ant-pagination-total-text) {
          flex: 1;
          text-align: left;
        }
      }
    }

    .btns {
      text-align: center;

      .btn {
        display: inline-block;
        cursor: pointer;
        border-radius: 4px;
        padding: 4px;
        margin: 4px;
        font-size: 14px;
        text-align: center;

        .icon {
          display: block;
          width: 24px;
          height: 24px;
          margin: 0 auto;
        }

        &:hover {
          background-color: #ececec;
        }

      }
    }

    .previewBg {
      position: relative;
      display: block;
      width: 202px;
      height: 202px;
      margin: 0 auto;
      border: 1px solid #ccc;

      canvas {
        width: 100% !important;
        height: 100% !important;
      }
    }

  }

  .btns {
    text-align: center;
  }

}

.customTip {
  :global(.ant-tooltip-inner) {
    color: #000 !important;
    background-color: #fff !important;
  }

  :global(.ant-tooltip-arrow:before) {
    background-color: #fff !important;
  }
}